Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 14436bce086d673b6076024ffc5bb99c32d9d11e


Parents : 36af5d8
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-11-03T20:09:54+01:00

Go home Windows, you're drunk. Only apply UI scaling factor to window size on Linux.

Changes

1 files changed, 3 insertions(+), 2 deletions(-)

M sbapp/main.py +3 -2

Diff

diff --git a/sbapp/main.py b/sbapp/main.py
index a0a021e0..e09bd4c8 100644
--- a/sbapp/main.py
+++ b/sbapp/main.py
@@ -201,8 +201,9 @@ else:
if not RNS.vendor.platformutils.is_android():
scaling_factor = 1.0
- try: scaling_factor = float(os.environ["KIVY_METRICS_DENSITY"])
- except Exception as e: pass
+ if not RNS.vendor.platformutils.is_windows() and not RNS.vendor.platformutils.is_darwin()
+ try: scaling_factor = float(os.environ["KIVY_METRICS_DENSITY"])
+ except Exception as e: pass
if scaling_factor < 0.75: scaling_factor = 0.75
if scaling_factor > 2: scaling_factor = 2


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────